using System;
using System.Data;
using System.Collections.Generic;
using System.ServiceModel;
using eTMS.DAO;
namespace eTMS.Services{
	/********************************BEGIN MonThiService****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:27/10/2011 56:03:12</para>
	/// <para>Class Name: MonThiService</para>
	/// <para>Description: </para>
	///</summary>

	
	public partial class MonThiService : IMonThiService{


		#region Select functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectOne</para>
		/// <para>Input: MonThi_ID</para>
		/// <para>Output: MonThiEntity</para>
		///</summary>
		public MonThiEntity SelectOne(int MonThi_ID){
			MonThiDAO dao = new MonThiDAO();
			return dao.SelectOne(MonThi_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of MonThiEntity</para>
		///</summary>
		public List<MonThiEntity> SelectAll(){
			MonThiDAO dao = new MonThiDAO();
			return dao.SelectAll();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDS(){
			MonThiDAO dao = new MonThiDAO();
			return dao.SelectAllDS();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of MonThiEntity</para>
		///</summary>
		public List<MonThiEntity> SelectAllFilter(string strFilter){
			MonThiDAO dao = new MonThiDAO();
			return dao.SelectAllFilter(strFilter);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDSFilter(string strFilter){
			MonThiDAO dao = new MonThiDAO();
			return dao.SelectAllDSFilter(strFilter);
		}
		#endregion

		#region Insert functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Save</para>
		/// <para>Input: MonThiEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Save(MonThiEntity o){
			MonThiDAO dao = new MonThiDAO();
			return dao.Save(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Save</para>
		/// <para>Input: MonThiEntity</para>
		/// <para>Output: MonThiEntity</para>
		///</summary>
		public MonThiEntity SaveRet(MonThiEntity o){
			MonThiDAO dao = new MonThiDAO();
			dao.Save(o);
			return o;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SaveList</para>
		/// <para>Input: List of MonThiEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void SaveList(List<MonThiEntity> list){
			MonThiDAO dao = new MonThiDAO();
			dao.SaveList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SaveListRet</para>
		/// <para>Input: List of MonThiEntity</para>
		/// <para>Output: List of MonThiEntity</para>
		///</summary>
		public List<MonThiEntity> SaveListRet(List<MonThiEntity> list){
			this.SaveList(list);
			return list;
		}
		#endregion

		#region Update functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Update</para>
		/// <para>Input: MonThiEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Update(MonThiEntity o){
			MonThiDAO dao = new MonThiDAO();
			return dao.Update(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateList</para>
		/// <para>Input: List of MonThiEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void UpdateList(List<MonThiEntity> list){
			MonThiDAO dao = new MonThiDAO();
			dao.UpdateList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateMonHoc_ID</para>
		/// <para>Input: NewMonHoc_ID,MonThi_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateMonHoc_ID(int NewMonHoc_ID,int MonThi_ID){
			MonThiDAO dao = new MonThiDAO();
			return dao.UpdateMonHoc_ID(NewMonHoc_ID,MonThi_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateLanThi</para>
		/// <para>Input: NewLanThi,MonThi_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateLanThi(Byte NewLanThi,int MonThi_ID){
			MonThiDAO dao = new MonThiDAO();
			return dao.UpdateLanThi(NewLanThi,MonThi_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateKyThi_ID</para>
		/// <para>Input: NewKyThi_ID,MonThi_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateKyThi_ID(int NewKyThi_ID,int MonThi_ID){
			MonThiDAO dao = new MonThiDAO();
			return dao.UpdateKyThi_ID(NewKyThi_ID,MonThi_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateNgayThi</para>
		/// <para>Input: NewNgayThi,MonThi_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateNgayThi(DateTime NewNgayThi,int MonThi_ID){
			MonThiDAO dao = new MonThiDAO();
			return dao.UpdateNgayThi(NewNgayThi,MonThi_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateTrangThai</para>
		/// <para>Input: NewTrangThai,MonThi_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateTrangThai(Byte NewTrangThai,int MonThi_ID){
			MonThiDAO dao = new MonThiDAO();
			return dao.UpdateTrangThai(NewTrangThai,MonThi_ID);
		}
		#endregion

		#region Delete functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Delete</para>
		/// <para>Input: MonThiEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Delete(MonThiEntity o){
			MonThiDAO dao = new MonThiDAO();
			return dao.Delete(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: DeleteByID</para>
		/// <para>Input: MonThi_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool DeleteByID(int MonThi_ID){
			MonThiDAO dao = new MonThiDAO();
			return dao.DeleteByID(MonThi_ID);
		}
		#endregion

		#region Select join to KyThiMonHoc functions
		#endregion

		#region Select join to KyThi functions
		#endregion

		#region Select join to MonHoc functions
		#endregion

		#region Select,delete by MonThi_ID functions
		#endregion

		#region Select,delete by MonHoc_ID functions
		#endregion

		#region Select,delete by KyThi_ID functions
		#endregion
	}
	/*****************************************************************************************************/
	/**********************************END MonThiWebServiceBase*****************************************/
	/*****************************************************************************************************/
}

